<?php
namespace app\command;

use app\model\OrderAftersalesModel;
use app\model\OrderItemsModel;
use app\model\OrderLogisticsModel;
use app\model\OrderReviewsModel;
use app\model\OrdersModel;
use app\model\ProductsModel;
use app\model\SeventyTwoDivisionsModel;
use app\model\StatisticsModel;
use app\model\TwentyFourSolarTermsModel;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class Test extends Command
{

    protected function configure()
    {
        $this->setName('测试脚本')
            ->setDescription('测试脚本');
    }

    protected function execute(Input $input, Output $output)
    {
        // 执行你的脚本任务代码


    /*    $model = new TwentyFourSolarTermsModel();
        $where =[];
        $where[] = ["update_time",">","2025-09-25 09:00:00"];
        $list = $model->getList($where,1,999999);
        foreach ($list as $one){
            echo "UPDATE twenty_four_solar_terms SET  image_url='{$one["image_url"]}' WHERE term_name =  '{$one["term_name"]}'; " .PHP_EOL;
        }
*/

     /*   $model = new SeventyTwoDivisionsModel();
        $where =[];
        $where[] = ["update_time",">","2025-09-25 09:00:00"];
        $list = $model->getList($where,1,999999);
        foreach ($list as $one){
            echo "UPDATE seventy_two_divisions SET  video_url='{$one["video_url"]}' WHERE phenomenon =  '{$one["phenomenon"]}'; " .PHP_EOL;
        }*/

    }
}